package com.pan.kang.model;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = false)
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class TableSchemaExcel {
    @ExcelProperty("库名")
    private String dbName;

    @ExcelProperty("表名")
    private String tableName;

    @ExcelProperty("表注释")
    private String tableComment;

    @ExcelProperty("模拟数据条数")
    private Integer mockNum;

    @ExcelProperty("字段名")
    private String fieldName;

    @ExcelProperty("字段类型")
    private String fieldType;

    @ExcelProperty("默认值")
    private String defaultValue;

    @ExcelProperty("是否非空")
    private boolean notNull;

    @ExcelProperty("注释")
    private String comment;

    @ExcelProperty("是否为主键")
    private boolean primaryKey;

    @ExcelProperty("是否自增")
    private boolean autoIncrement;

    @ExcelProperty("模拟类型")
    private String mockType;

    @ExcelProperty("模拟参数")
    private String mockParams;

}
